#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QGridLayout>
#include <QTimer>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    mScene = new MqttScene();
    mView = new QGraphicsView(mScene,this);

    QGridLayout *gridLayout = new QGridLayout(ui->centralwidget);
    gridLayout->addWidget(mView, 0, 0, 1, 1);


}

MainWindow::~MainWindow()
{
    delete ui;
}

